package com.zi.experttalk.experttalk.Model.service;

import android.util.Base64;

/**
 * Created by Administrator on 2014/12/11.
 */
public class Base64Manager {

    //对String数据进行base64加密
    public String base64encode(String str){
        String encode = new String(Base64.encode(str.getBytes(), Base64.NO_WRAP));
        return encode;
    }
    // 对base64加密后的数据进行解密
    public String base64decode(String bytes){
        String decodeString = new String(Base64.decode(bytes, Base64.NO_WRAP));
        return decodeString;
    }
}
